#coding=utf-8
import arcpy
path = r'D:\秋声科技\shp\雅安数据\river'
arcpy.env.workspace = path
arcpy.env.overwriteOutput = True
spatial_ref = arcpy.SpatialReference(4326)

rivs1 = r'D:\秋声科技\shp\雅安数据\river\YA_RIV_LEVEL6_4326_0903.shp'.decode('utf-8')
cs1 = arcpy.da.UpdateCursor(rivs1,'name')
for row1 in cs1:
    if '(' in row1[0]:
        rivName = row1[0].split('(')[0]
        row1[0] = rivName
        cs1.updateRow(row1)
        print row1[0]